package com.ctshk.rpc.user.service;

import com.ctshk.common.dto.Result;
import com.ctshk.common.model.PageResponse;
import com.ctshk.rpc.user.dto.PassengerDTO;
import com.ctshk.rpc.user.dto.PassengerListDTO;
import com.ctshk.rpc.user.req.BatchDeleteReq;
import com.ctshk.rpc.user.req.PassengerPageReq;
import com.ctshk.rpc.user.req.PassengerReq;

import java.util.List;

/**
 * <p>
 *  常用旅客接口
 * </p>
 *
 * @author 李新科
 * @date 2021/5/17 10:25
 */
public interface IPassengerService {

    Result<PageResponse<PassengerListDTO>> queryPage(PassengerPageReq req);

    Result add(PassengerReq req);

    Result update(PassengerReq req);

    Result delete(Long id, Long userId);

    Result batchDelete(BatchDeleteReq req);

    Result<PassengerDTO> detail(Long id, Long userId);

    Result setDefault(Long id, Long userId,Integer isDefault);
}
